<div ng-init="init();" class="kmi-layout-content SMT05-content" ng-class="LevelPhaseStatus()">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="header-title" ng-bind="'SMT05.title' | translate"></div>
    </div>
    <div class="kmi-layout-main-content">
        <!-- 基本資料 data -->
        <div class="kmi-row-fields data">
            <!-- 使用者資料 data_user -->
            <div class="column-item left data_user">
                <img src="image/icons/person.png"></img> 
                <label ng-bind="user_name"></label>
            </div>
            <!-- 環境資料 data_environment -->
            <div class="column-item right data_environment">
                <label ng-bind="('home.env' | translate) + envInfo"></label>
            </div>
        </div>
        <!-- 主要流程 process -->
        <div class="process">
            <div class="process_model" ng-repeat-start="phase in phases"
                ng-click="BackToPhase($index)" ng-class="PhaseStatus($index)">
                <label class="process_item" ng-bind="'SMT05.'+phase | translate" ></label>
            </div>
            <i class="material-icons process_arrowIcons" ng-repeat-end ng-if="!$last">keyboard_arrow_right</i>
        </div>
        <!-- 搜尋掃描欄 qr-code -->
        <div class="kmi-row-fields barcode_content qr-code" id="input_barcode">
            <img src="image/icons/search.png"></img> 
            <!-- <input class="qr-code_input" mdl-barcode="input_barcode(barcode)"/> -->
            <input class="barcode_input value input_plot" readonly="readonly"
                ng-keypress="input_PDA_barcode($event);" ng-model="barcode" hidekeyboard="true" />
            <div class="qr-code_icon" ng-click="QRCodeScanner();">
                <img src="image/icons/QRCode.png">
            </div>
        </div>
        <!-- 主要內容 SMT05_main -->
        <div class="SMT05_main">
            <div class="kmi-row-fields main_fields">
                <!-- Feeder(編號) feeder_no -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.feeder_no' | translate"></label>
                    <label class="value" ng-bind="feeder_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- 設備編號 machine_no -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.machine_no' | translate"></label>
                    <label class="value" ng-bind="machine_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- 料站 slot_no  -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.slot_no' | translate"></label>
                    <label class="value" ng-bind="slot_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- 原物料批  origin_reel_no -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.origin_material_no' | translate"></label>
                    <label class="value" ng-bind="origin_reel_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- (原物料批)品號  origin_material_no -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.product_no' | translate"></label>
                    <label class="value" ng-bind="origin_material_no"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- (原物料批)規格  origin_material_item_spec -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.item_spec' | translate"></label>
                    <label class="value" ng-bind="origin_material_item_spec"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields" style="border-bottom:1px #cecece solid;">
                <!-- (原物料批)數量  origin_material_qty -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list1.qty' | translate"></label>
                    <label class="value" ng-bind="actual_qty"></label>
                    <!-- <input mdl-calculater="actual_qty" style="width: 20%; flex: none;" ng-show="phases_index == 1 || phases_index == 2">-->
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- 新物料批  new_reel_no -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list2.new_material_no' | translate"></label>
                    <label class="value" ng-bind="new_reel_no" ng-show="phases_index == 2"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields" >
                <!-- (新物料批)品號  new_material_no -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list2.product_no' | translate"></label>
                    <label class="value" ng-bind="new_material_no" ng-show="phases_index == 2"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- (新物料批)規格  new_material_item_spec -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list2.item_spec' | translate"></label>
                    <label class="value" ng-bind="new_material_item_spec" ng-show="phases_index == 2"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- (新物料批)原始數量  new_material_qty -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list2.origin_qty' | translate"></label>
                    <label class="value" ng-bind="new_material_qty" ng-show="phases_index == 2"></label>
                </div>
            </div>
            <div class="kmi-row-fields main_fields">
                <!-- (新物料批)數量  new_material_qty -->
                <div class="column-item">
                    <label class="label main_item" ng-bind="'SMT05.list2.act_qty'| translate"></label>
                    <input mdl-calculater="new_material_actual_qty" style="width: 20%; flex: none;" ng-show="phases_index == 2">
                </div>
            </div>
        </div>
        <!-- 關閉按鈕 & 確定按鈕 -->
        <div class="kmi-mobile__btn-content" style="justify-content: space-around; display: flex;">
            <button class="kmi-button__mobile ng_prev" ng-click="back();">
                <label ng-bind="'common.btn.close' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
            <button class="kmi-button__mobile" ng-click="confirm();">
                <label ng-bind="'common.btn.confirm' | translate"></label>
                <div class="kmi-can-click"></div>
            </button>
        </div>
    </div>
</div>
